home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Click 1 (Special Issue)
/
fantasy.iso
/
Demo The Druid King
/
DemoMap.pak
/
SEQUENCES_S04_DUMNORIX.VS
< prev
next >
Wrap
Text File
|
2001-04-11
|
2KB
|
71 lines
//void
NamedObj Keltill, Dumnorix;
Conversation conv;
TRect rc;
ObjSet Delvanians;
ObjList Delv;
int i;
/*
//init part - delete this
CreateNamedObj("Keltill", PlaceEx("Keltill", 1537, 12626, 1));
PlayersAlly(1,4);
PlayersShareView(1,4);
*/
//init part - keep this
Keltill = GetNamedObj("Keltill");
Dumnorix = CreateNamedObj("Dumnorix", PlaceEx("Dumnorix", 1779, 10626, 4));
PlaceBlockEx("GAxeman", 4, 1700, 10680, 5, 2, 25, 45, "Delvanians");
Delvanians = GetObjSet("Delvanians");
Delvanians.AddCommand(true, "attach", Dumnorix.obj);
Delvanians.KillCommand();
//Conv 13
Dumnorix.obj.AddCommand(true, "approach", Keltill.obj);
Dumnorix.obj.KillCommand();
while(Dumnorix.obj.script == "approach") Sleep(500);
conv.Init("DM C13", 2, 0);
conv.Run();
if (EnvReadString("/DM C13/Return Value") == "ally") {
Dumnorix.obj.SetPlayer(1);
Delv = Delvanians.GetObjList();
for (i=0; i<Delv.Count(); i+=1) Delv[i].SetPlayer(1);
EnvWriteInt("/NewNote", 6);
Run("CurrentMap/mission_notes.vs");
//rc.Set(10085, 7298, 10212, 7508); //small rect - center of shrine
rc.Set(9890, 7106, 10427, 7614); //larger rect - whole Stonehange
while (1) {
if (ptInRect(Dumnorix.obj.pos, rc)) break;
Sleep(500);
}
EnvWriteInt("/Note6", 0);
Dumnorix.obj.AsUnit.SetExperience(Dumnorix.obj.AsUnit.experience + 20);
EnvWriteInt("/s04_dumnorix/finished", 1);
} else if (EnvReadString("/DM C13/Return Value") == "farewell") {
Dumnorix.obj.AddCommand(true, "move", point(10146, 7375));
Dumnorix.obj.KillCommand();
while (Dumnorix.obj.script == "move" || Dumnorix.obj.script == "advance") Sleep(500);
Sleep(10000); //make offering
Dumnorix.obj.AddCommand(true, "move", point(9941, 4885));
Dumnorix.obj.KillCommand();
while (Dumnorix.obj.script == "move" || Dumnorix.obj.script == "advance") Sleep(500);
Dumnorix.obj.Delete();
Delv = Delvanians.GetObjList();
for (i=0; i<Delv.Count(); i+=1) Delv[i].Delete();
EnvWriteInt("/s04_dumnorix/finished", 1);
} else if (EnvReadString("/DM C13/Return Value") == "enemy") {
Dumnorix.obj.SetPlayer(5);
Delv = Delvanians.GetObjList();
for (i=0; i<Delv.Count(); i+=1) Delv[i].SetPlayer(5);
Dumnorix.obj.AddCommand(true, "attack", Keltill.obj);
Dumnorix.obj.KillCommand();
while (!Dumnorix.IsDead) Sleep(500);
EnvWriteInt("/s04_dumnorix/finished", 1);
} else pr("Conv. 13 didn't finish as expected");